import math


class JiShuanQi:
    @staticmethod
    def jia(a,b):
        return a + b
    @staticmethod
    def jian(a,b):
        return a-b
    @staticmethod
    def cheng(a,b):
        return a*b
    @staticmethod
    def chu(a,b):
        return a/b
    @staticmethod
    def gen(a):
        return a ** 2
    @staticmethod
    def sqrt_v(a):
        if a<0:
            raise ValueError("参数不能为负")
        return math.sqrt(a)
def test():
    try:
        print(JiShuanQi.jia(1,2))
        print(JiShuanQi.jian(1,2))
        print(JiShuanQi.cheng(1,2))
        print(JiShuanQi.chu(2,1))
        print(JiShuanQi.gen(2))
        print(JiShuanQi.sqrt_v(-1))
    except ZeroDivisionError:
        print("除数不能为0")
    except ValueError as e:
        print(e)
test()